﻿using System.Xml.Serialization;
using sql_data_generator.Enums;
using sql_data_generator.Extensions;

namespace sql_data_generator.Entities
{
    public class Field
    {
        [XmlIgnore]
        public string Name
        {
            get
            {
                return FieldType.GetEnumDescription();
            }
        }

        public FieldType FieldType { get; set; }

        [XmlIgnore]
        public SubField[] SubFields { get; set; }
    }
}